package com.sdx.console.saas.entity;

import java.util.Date;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Null;

import com.fasterxml.jackson.annotation.JsonIgnore;
import org.beetl.sql.core.annotatoin.ColumnIgnore;
import org.beetl.sql.core.annotatoin.AutoID;
import org.beetl.sql.core.annotatoin.SeqID;
import org.apache.commons.lang3.StringUtils;
import com.ibeetl.admin.core.util.ValidateConfig;
import com.sdx.service.ConfigService;

import org.beetl.sql.core.TailBean;
import java.math.*;

import com.ibeetl.admin.core.annotation.Dict;
import com.ibeetl.admin.core.entity.BaseEntity;

import org.beetl.sql.core.annotatoin.InsertIgnore;
import org.beetl.sql.core.annotatoin.Version;
import org.beetl.sql.core.annotatoin.LogicDelete;
import com.sdx.common.utils.Utils;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import lombok.Data;

/* 
* 
* gen by Spring Boot2 Admin 2019-12-03
*/
@JsonSerialize(include=JsonSerialize.Inclusion.NON_NULL)
@Data
public class SaasTenant extends BaseEntity{

    //承租人id
    @AutoID	
    private Integer tenantId ;
	
    //承租人地址前缀
    private String tenantUrl ;
	
    //承租人名称
    private String tenantName ;
	
    //承租人类型
    private Integer tenantType ;
	
    //承租人联系地址
    private String tenantAddr ;
	
    //承租人电话
    private String tenantPhone ;
	
    //承租人邮箱
    private String tenantMail ;
	
    //客服信息
    private String custserviceInfo ;

	/** 省份权限类型;0、无限制，1、限制省份 */
	private Integer provinceLimits ;
	
    //可用标记 1、可用，0、不可用
    private Integer tenantStatus ;
	
    //创建人
    private Integer createdBy ;
	
    //创建人名称
    private String createdName ;
	
    //创建时间
    private Date createdTime ;
	
    //更新人
    private Integer updatedBy ;
	
    //更新人名称
    private String updatedName ;
	
    //更新时间
    private Date updatedTime ;

    //网站logo
    private String logo ;
    //网站主题颜色
    private String themeColor ;
    //用户协议
    private String userAgreement ;
    //网站图片JSON字符串 name 名称  url 地址  no 序号
    private String picture ;
    //客服电话
    private String custTel ;
    //客服时间
    private String custTime ;
    //商务合作电话
    private String cooperationTel ;
    //商务合作联系人
    private String contacts ;
    //版权所有
    private String copyright ;

    private String pictureJson;
    public String getLogoView(){
        return Utils.imageUrl(logo);
    }

}
